home *** CD-ROM | disk | FTP | other *** search
- Path: earth.superlink.net!usenet
- From: "Michael J. Weiss" <mjw@pobox.com>
- Newsgroups: comp.lang.tcl,comp.unix.programmer,comp.unix.questions,comp.unix.shell,comp.lang.awk,comp.lang.c,comp.lang.perl.misc,comp.programming,comp.software-eng
- Subject: Appropriate Tools and Approach For Kill Application
- Date: Wed, 17 Apr 1996 12:56:08 -0400
- Organization: SuperNet Inc. (908) 828-8988
- Message-ID: <317522A8.69B4@pobox.com>
- NNTP-Posting-Host: sb11.superlink.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
- CC: mjw@pobox.com
-
- I am interested in writing a fancy program to kill processes and could use
- some advice on appropriate tools, languages, and approaches.
-
- I would like the program to function as follows:
-
- There will exist a command line switch to correspond to each process
- characterstic. A process characteristic will most likely be each of the
- fields displayed in a full process list (ps -ef on many systems.) Using
- these switches, a user will be able to specify one or more characteristics
- with the ability to use regular expressions. Also, where appropriate, he
- or she may include processes to be killed by using equalities/
- inequalities.
-
-
- i.e.
-
- kill -n x*
-
- would kill xterm, xrn, xmosaic, etc.
-
-
- kill -n x* -t >=5h2m
-
- would kill all processes beginning with lowercase x and which have been
- running at least than five hours and two minutes.
-
- These examples are provided to give a basic idea--I haven't worked out the
- syntax yet.
-
- Lastly, I would like the user to be able to specify criteria for EXCLUDING
- processes based on values for these same characteristics.
-
-
- Can you please help with the following questions:
-
- 1) What tools or languages would be best to use? C, Tcl, scripting langs,
- LEX & YACC, etc.
-
- 2) What are some good strategies and their pros and cons for implementing
- this functionality in different software forms i.e. script, program,
- combination, etc.
-
- 3) Are there any guidelines or tips for designing the syntax to jive with
- standard practice?
-
-
- Thanks so much for your help.
-
-
- Michael Weiss
-